﻿using System.Collections;
using UnityEngine;


public class MonsterMission : MonoBehaviour
{
    public RoleController role;

    public string missionId;
    // Use this for initialization
    void Start()
    {
        role = GetComponent<RoleController>();
    }

    // Update is called once per frame
    void Update()
    {
        if (role != null)
        {
            if (role.hp <= 0)
            {
                //GameData.PerformMission(missionId);
                role = null;
            }
        }
    }
}
